/** 抽奖相关的常量 */

/** type和奖品图片的对应关系 */
export const prizeImgMap: { [key: string]: string } = {
  L1: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-1.png',
  L2: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-2.png',
  L3: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-3.png',
  L4: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-4.png',
  L5: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-5.png',
  L6: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-6.png',
  L7: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-7.png',
  L8: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-8.png',
  L9: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-9.png',
  L10: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-10.png',
  L11: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-11.png',
  L12: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-12.png',
  L13: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-13.png',
}

/** type和prizeType的对应关系 */
export const prizeTypeMap: { [key: string]: 'normal' | 'cash' | 'contact' } = {
  L1: 'contact',
  L2: 'contact',
  L3: 'contact',
  L4: 'contact',
  L5: 'contact',
  L6: 'cash',
  L7: 'cash',
  L8: 'cash',
  L9: 'normal',
  L10: 'normal',
  L11: 'cash',
  L12: 'cash',
  L13: 'cash',
}

/** 520的奖品列表 */
export const prizeList520 = [
  {
    id: 1,
    name: '一等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-1.png',
  },
  {
    id: 2,
    name: '二等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-2.png',
  },
  {
    id: 3,
    name: '三等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-3.png',
  },
  {
    id: 4,
    name: '四等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-4.png',
  },
  {
    id: 5,
    name: '五等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-5.png',
  },
  {
    id: 6,
    name: '六等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-6.png',
  },
  {
    id: 7,
    name: '七等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-7.png',
  },
  {
    id: 8,
    name: '八等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-8.png',
  },
  {
    id: 520,
    name: '520活动奖品',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-520.png'
  }
]

/** 默认的奖品列表 */
export const defaultPrizeList = [
  {
    id: 1,
    name: '一等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-1.png',
  },
  {
    id: 2,
    name: '二等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-2.png',
  },
  {
    id: 3,
    name: '三等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-3.png',
  },
  {
    id: 4,
    name: '四等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-4.png',
  },
  {
    id: 5,
    name: '五等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-5.png',
  },
  {
    id: 6,
    name: '六等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-6.png',
  },
  {
    id: 7,
    name: '七等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-7.png',
  },
  {
    id: 8,
    name: '八等奖',
    img: 'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-8.png',
  }
]

/** 奖池的图片列表 */
export const prizePoolImgList = [
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-1.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-7.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-2.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-5.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-7.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-6.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-3.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-8.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-1.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-3.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-4.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-4.png',
]

/** 520奖池的图片列表 */
export const prizePool520ImgList = [
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-1.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-520.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-2.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-5.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-7.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-6.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-3.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-8.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-520.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-3.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-4.png',
  'https://ustatic.hudongmiao.com/joymew-host-contest/lottery-prize-4.png',
]

/** 520活动开始时间 */
export const activity520StartTime = '2023-05-19 21:00:00'

/** 520活动结束时间 */
export const activity520EndTime = '2023-05-21 23:59:59'

/** 兑换广播信息 */
export const EXCHANGE_BROADCAST_LIST: Array<BroadcastInfo> = [
  {
    id: '1',
    avator: 'https://img.yzcdn.cn/vant/cat.jpeg',
    nickname: '小明',
    content: '一等奖',
  },
  {
    id: '2',
    avator: 'https://img.yzcdn.cn/vant/cat.jpeg',
    nickname: '小红',
    content: '二等奖',
  },
  {
    id: '3',
    avator: 'https://img.yzcdn.cn/vant/cat.jpeg',
    nickname: '小刚',
    content: '三等奖',
  }
]

/** 礼品列表 */
export const GIFT_LIST: Array<GiftItemInfo> = [
  {
    id: '1',
    img: 'https://img.yzcdn.cn/vant/cat.jpeg',
    name: '高级定制礼服高级定制礼服高级定制礼服高级定制礼服',
    exchangedNum: 1,
    stockNum: 2,
    price: 10000,
    originalPrice: 4999
  },
  {
    id: '2',
    img: 'https://img.yzcdn.cn/vant/cat.jpeg',
    name: '高级定制礼服',
    exchangedNum: 1,
    stockNum: 2,
    price: 10000,
    originalPrice: 4999
  },

  {
    id: '3',
    img: 'https://img.yzcdn.cn/vant/cat.jpeg',
    name: '高级定制礼服',
    exchangedNum: 1,
    stockNum: 2,
    price: 10000,
    originalPrice: 4999
  }
]
